/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IMUGyroscope {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080046';
    }

    get categoryName() {
        return '\u9640\u87ba\u4eea';
    }

    getAccelerationX(params) {
        return command({
            method: 'getAccelerationX',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAccelerationY(params) {
        return command({
            method: 'getAccelerationY',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAccelerationZ(params) {
        return command({
            method: 'getAccelerationZ',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPithAngle(params) {
        return command({
            method: 'getPithAngle',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRowAngle(params) {
        return command({
            method: 'getRowAngle',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getXAxisAngularDisplacement(params) {
        return command({
            method: 'getXAxisAngularDisplacement',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getXAxisAngularVelocity(params) {
        return command({
            method: 'getXAxisAngularVelocity',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getYAxisAngularDisplacement(params) {
        return command({
            method: 'getYAxisAngularDisplacement',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getYAxisAngularVelocity(params) {
        return command({
            method: 'getYAxisAngularVelocity',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getYawAngle(params) {
        return command({
            method: 'getYawAngle',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getZAxisAngularDisplacement(params) {
        return command({
            method: 'getZAxisAngularDisplacement',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getZAxisAngularVelocity(params) {
        return command({
            method: 'getZAxisAngularVelocity',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGyroCalibration(params) {
        return command({
            method: 'setGyroCalibration',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'nan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IMUGyroscope;
